#include "lcdcg.h"

#include <avr/pgmspace.h>
#include "lcd.h"

#define CGCNT 4

static prog_uchar cgdata[CGCNT*8] = {
    0x06, 0x09, 0x09, 0x06, 0x00, 0x00, 0x00, 0x00,
    0x1F, 0x10, 0x10, 0x10, 0x10, 0x10, 0x1F, 0x00,
    0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x00,
    0x1F, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1F, 0x00,
};

void cgInit(void)
{
    lcd_command(0x40 | 0x00);
    for(uint8_t i=0; i < (CGCNT*8); ++i)
        lcd_data(pgm_read_byte(cgdata + i));
    lcd_command(0x80 | 0x00);
}


